import { locations } from "../../../../gpu/locations";
export const AlphaMap_def = /*wgsl*/ `
#if ~{def.alphaMap}
  @group(${locations.alphaMap[0]}) @binding(${locations.alphaMap[1]}) var alphaMap: texture_2d<f32>;
  @group(${locations.alphaMapSampler[0]}) @binding(${locations.alphaMapSampler[1]}) var alphaMap_sampler: sampler;
  fn cal_alphaMap(input:Input)->f32{
    var uv = cal_uv(input);
    return textureSample(alphaMap, alphaMap_sampler, uv).g;
  }
#endif
`
